﻿#if NET451_OR_GREATER

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using T.ServiceFramework.Service;

namespace T.SF.Console.HttpHost
{
    [WebApiExceptionFilter]
    public class CommonController : ApiController
    {
        [HttpPut]
        [HttpPost]
        [HttpGet]
        [AllowAnonymous]
        public object Execute(Dictionary<string, string> data)
        {
            return WebHostService.Current.Invoker.Invoke(System.Web.HttpContext.Current, data);
        }
    }
}
#endif